package com.qjc.repository;

import com.qjc.entity.Position;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: PositionRepository
 * @Description: 实现了ElasticsearchRepository，就可以自动为Position创建索引
 * @Author: qjc
 * @Date: 2022/1/14 3:05 下午
 */
@Repository
public interface PositionRepository extends ElasticsearchRepository<Position, Long> {

    List<Position> findPositionsByPositionName(String positionName);

}
